package com.example.apiproject.dao;

import com.example.apiproject.entity.Articles;
import com.example.apiproject.entity.JoinArticle;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Service;

import java.time.LocalDateTime;
import java.util.List;

@Mapper
public interface JoinArticleDao {
    /**
     * 参与用户参与的寻搭
     * @param userId
     * @return
     */
    List<String> queryArtIdByUserId(Integer userId);

    int insert(JoinArticle joinArticle);

    int update(JoinArticle joinArticle);

//    @Select("select * from articles where deadline < #{now}")
//    List<Articles> test(LocalDateTime now);
}
